﻿namespace ZR.Model.Souvenir
{
    /// <summary>
    /// 纪念品分类
    /// </summary>
    [SugarTable("souvenir_category")]
    public class Category
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        
        /// <summary>
        /// 父ID
        /// </summary>
        public int ParentId { get; set; }
        
        /// <summary>
        /// 类别名称
        /// </summary>
        public string Name { get; set; }
        
        /// <summary>
        /// 排序编号
        /// </summary>
        public int Sort { get; set; }
        
        [SugarColumn(IsIgnore = true)]
        public List<Category> Children { get; set; }
    }
}